package com.zqwh.xtool.greendao.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author LOSER
 * @date 2019/9/30 18:11
 */
@Entity
public final class LendOrderDetail {
    @Id
    private String lendOrderDetailId;

    private Long userId;
    private Long devId;
    private String lendOrderId;
    private String stockId;
    private String epc;

    private Long toolId;
    private Long toolCategoryId;
    private String toolName;
    private String toolImage;
    private String toolSpec;
    private String toolDesc;
    private String toolCategoryName;

    private String rentStatus;
    private Date returnDate;
    private String rentDuration;
    private Boolean valid = true;
    private Boolean updated = false;
    private Boolean hasRFID = true;
    private Date createTime;
    private Date updateTime;
    @Generated(hash = 1883210171)
    public LendOrderDetail(String lendOrderDetailId, Long userId, Long devId,
            String lendOrderId, String stockId, String epc, Long toolId,
            Long toolCategoryId, String toolName, String toolImage, String toolSpec,
            String toolDesc, String toolCategoryName, String rentStatus,
            Date returnDate, String rentDuration, Boolean valid, Boolean updated,
            Boolean hasRFID, Date createTime, Date updateTime) {
        this.lendOrderDetailId = lendOrderDetailId;
        this.userId = userId;
        this.devId = devId;
        this.lendOrderId = lendOrderId;
        this.stockId = stockId;
        this.epc = epc;
        this.toolId = toolId;
        this.toolCategoryId = toolCategoryId;
        this.toolName = toolName;
        this.toolImage = toolImage;
        this.toolSpec = toolSpec;
        this.toolDesc = toolDesc;
        this.toolCategoryName = toolCategoryName;
        this.rentStatus = rentStatus;
        this.returnDate = returnDate;
        this.rentDuration = rentDuration;
        this.valid = valid;
        this.updated = updated;
        this.hasRFID = hasRFID;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    @Generated(hash = 1332628578)
    public LendOrderDetail() {
    }
    public String getLendOrderDetailId() {
        return this.lendOrderDetailId;
    }
    public void setLendOrderDetailId(String lendOrderDetailId) {
        this.lendOrderDetailId = lendOrderDetailId;
    }
    public Long getUserId() {
        return this.userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getDevId() {
        return this.devId;
    }
    public void setDevId(Long devId) {
        this.devId = devId;
    }
    public String getLendOrderId() {
        return this.lendOrderId;
    }
    public void setLendOrderId(String lendOrderId) {
        this.lendOrderId = lendOrderId;
    }
    public String getStockId() {
        return this.stockId;
    }
    public void setStockId(String stockId) {
        this.stockId = stockId;
    }
    public String getEpc() {
        return this.epc;
    }
    public void setEpc(String epc) {
        this.epc = epc;
    }
    public Long getToolId() {
        return this.toolId;
    }
    public void setToolId(Long toolId) {
        this.toolId = toolId;
    }
    public Long getToolCategoryId() {
        return this.toolCategoryId;
    }
    public void setToolCategoryId(Long toolCategoryId) {
        this.toolCategoryId = toolCategoryId;
    }
    public String getToolName() {
        return this.toolName;
    }
    public void setToolName(String toolName) {
        this.toolName = toolName;
    }
    public String getToolImage() {
        return this.toolImage;
    }
    public void setToolImage(String toolImage) {
        this.toolImage = toolImage;
    }
    public String getToolSpec() {
        return this.toolSpec;
    }
    public void setToolSpec(String toolSpec) {
        this.toolSpec = toolSpec;
    }
    public String getToolDesc() {
        return this.toolDesc;
    }
    public void setToolDesc(String toolDesc) {
        this.toolDesc = toolDesc;
    }
    public String getToolCategoryName() {
        return this.toolCategoryName;
    }
    public void setToolCategoryName(String toolCategoryName) {
        this.toolCategoryName = toolCategoryName;
    }
    public String getRentStatus() {
        return this.rentStatus;
    }
    public void setRentStatus(String rentStatus) {
        this.rentStatus = rentStatus;
    }
    public Date getReturnDate() {
        return this.returnDate;
    }
    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }
    public String getRentDuration() {
        return this.rentDuration;
    }
    public void setRentDuration(String rentDuration) {
        this.rentDuration = rentDuration;
    }
    public Boolean getValid() {
        return this.valid;
    }
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public Boolean getUpdated() {
        return this.updated;
    }
    public void setUpdated(Boolean updated) {
        this.updated = updated;
    }
    public Boolean getHasRFID() {
        return this.hasRFID;
    }
    public void setHasRFID(Boolean hasRFID) {
        this.hasRFID = hasRFID;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return  "lendOrderDetailId='" + lendOrderDetailId + '\'' +
                ", userId=" + userId +
                ", devId=" + devId +
                ", lendOrderId='" + lendOrderId + '\'' +
                ", stockId='" + stockId + '\'' +
                ", epc='" + epc + '\'' +
                ", toolId=" + toolId +
                ", toolCategoryId=" + toolCategoryId +
                ", toolName='" + toolName + '\'' +
                ", toolImage='" + toolImage + '\'' +
                ", toolSpec='" + toolSpec + '\'' +
                ", toolDesc='" + toolDesc + '\'' +
                ", toolCategoryName='" + toolCategoryName + '\'' +
                ", rentStatus='" + rentStatus + '\'' +
                ", returnDate=" + returnDate +
                ", rentDuration='" + rentDuration + '\'' +
                ", valid=" + valid +
                ", updated=" + updated +
                ", hasRFID=" + hasRFID +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime;
    }
}
